#
# Be sure to run `pod lib lint NEDCategory.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see https://guides.cocoapods.org/syntax/podspec.html
#

Pod::Spec.new do |s|
  s.name             = 'NEDCategory'
  s.version          = '0.1.8'
  s.summary          = 'A short description of NEDCategory.'
  
  # This description is used to generate tags and improve search results.
  #   * Think: What does it do? Why did you write it? What is the focus?
  #   * Try to keep it short, snappy and to the point.
  #   * Write the description between the DESC delimiters below.
  #   * Finally, don't worry about the indent, CocoaPods strips it!
  
  s.description      = <<-DESC
  TODO: Add long description of the pod here.
  DESC
  
  s.homepage         = 'http://gitlab.miguan.com/ad-ios/NEDCategory'
  # s.screenshots     = 'www.example.com/screenshots_1', 'www.example.com/screenshots_2'
  s.license          = { :type => 'MIT', :file => 'LICENSE' }
  s.author           = { '林宁宁' => 'linningning@98du.com' }
  s.source           = { :git => 'http://gitlab.miguan.com/ad-ios/NEDCategory.git', :tag => s.version.to_s }
  # s.social_media_url = 'https://twitter.com/<TWITTER_USERNAME>'
  
  s.ios.deployment_target = '9.0'
    
  s.subspec 'Foundation' do |cs|
    
    cs.subspec 'Attribute' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/Attribute/**/*'
    end
    
    cs.subspec 'Date' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/Date/**/*'
    end
    
    cs.subspec 'Decimal' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/Decimal/**/*'
    end
    
    cs.subspec 'Keyboard' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/Keyboard/**/*'
    end
    
    cs.subspec 'KVO' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/KVO/**/*'
      
      ccs.dependency 'KVOController'
      ccs.dependency 'YYCategories'
    end
    
    cs.subspec 'Notification' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/Notification/**/*'
    end
    
    cs.subspec 'String' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/String/**/*'
      
      ccs.dependency 'NEDConstant'
      ccs.dependency 'NEDCategory/Foundation/Date'
      ccs.dependency 'NEDApp/Mediator'
    end
    
    cs.subspec 'Dealloc' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/Foundation/Dealloc/**/*'
    end
    
  end
  
  s.subspec 'UIKit' do |cs|

    cs.subspec 'View' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/View/**/*'

      ccs.dependency 'NEDStyle'
      ccs.dependency 'NEDCategory/Foundation/String'
      ccs.dependency 'NEDCategory/Foundation/Attribute'
      ccs.dependency 'NEDCategory/Foundation/Dealloc'
      ccs.dependency 'Masonry'
    end

    cs.subspec 'Control' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/Control/**/*'

      ccs.dependency 'NEDCategory/UIKit/View'
      ccs.dependency 'NEDApp/Mediator'
    end

    cs.subspec 'Input' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/Input/**/*'

      ccs.dependency 'NEDCategory/Foundation/String'
      ccs.dependency 'NEDCategory/Foundation/Notification'
      ccs.dependency 'NEDCategory/UIKit/Control'
      ccs.dependency 'NEDApp/Mediator'
    end

    cs.subspec 'Image' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/Image/**/*'
    end

    cs.subspec 'WebImage' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/WebImage/**/*'

      ccs.dependency 'SDWebImage'
      ccs.dependency 'NEDCategory/Foundation/String'
      ccs.dependency 'NEDCategory/UIKit/Image'
    end

    cs.subspec 'Label' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/Label/**/*'
      
      ccs.dependency 'NEDCategory/Foundation/Attribute'
    end

    cs.subspec 'ScrollView' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/ScrollView/**/*'

      ccs.dependency 'DZNEmptyDataSet'
      ccs.dependency 'Masonry'
      ccs.dependency 'NEDStyle'
      ccs.dependency 'NEDCategory/Foundation/Attribute'
      ccs.dependency 'NEDCategory/UIKit/Control'
    end

    cs.subspec 'ViewController' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/ViewController/**/*'
      
      ccs.dependency 'NEDStyle'
      ccs.dependency 'NEDCategory/UIKit/Control'
      ccs.dependency 'NEDCategory/UIKit/WebImage'
      ccs.dependency 'NEDCategory/UIKit/Image'
    end
    
    cs.subspec 'Button' do |ccs|
      ccs.source_files = 'NEDCategory/Classes/UIKit/Button/**/*'
      
      ccs.dependency 'NEDStyle'
    end
    
  end
  
end
